POV-Ray : Newsgroups : povray.advanced-users : Reproducing pigment from functions ... : Re: Reproducing pigment from functions ... Server Time
29 Jul 2024 18:20:15 EDT (-0400)
  Re: Reproducing pigment from functions ...  
From: David Wallace
Date: 12 Apr 2002 22:29:14
Message: <3cb797fa@news.povray.org>
"Michael Andrews" <m.c### [at] readingacuk> wrote in message
news:3CB45A4F.413CA07F@reading.ac.uk...

>

>
> >     [1 function { FNPIG(x,y,z).filter } colour_map {[0 rgb 0][1 filter
5]} ]
>
> Sorry, no, this is always black :-/
>
> I hadn't thought of trying this way though ...
>
> Bye for now,
> Mike Andrews.

I tried a 5-parameter function thinking that the results would be truncated
otherwise... POV rejected it as an error:
"Function parameters for pigment functions are not allowed."

I suspect that your problem is that any 5D color vector that is interpreted
in a function block is truncated to 3D RGB form.  If that's so then you're
SOL.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.